import imagereader.IImageIO;

import java.awt.Color;
import java.awt.Image;
import java.io.FileInputStream;
import java.io.IOException;


public class ImageIOImpl implements IImageIO {

	@Override
	public Image myRead(String filePath) throws IOException {
		FileInputStream in = new FileInputStream(filePath);
		Image image = BMPLoader.read(in);
//		Image image2 = BMPLoader.createColorChanel(in, BMPLoader.ChanelR);
		return image;
	}

	@Override
	public Image myWrite(Image arg0, String filePath) throws IOException {
		// TODO Auto-generated method stub
		return null;
	}

}
